package eva.savant.business.global.view

import eva.savant.businessobject.gl.Moneda
import eva.savant.core.view.Maestro

import javax.faces.bean.ManagedBean
import javax.faces.bean.SessionScoped
import javax.annotation.PostConstruct

@SessionScoped
@ManagedBean(name = 'IMMoneda')
public class IMMoneda extends Maestro {

  @PostConstruct
  public void cleanEntity() {

    entity= new Moneda(); init()
  }

  public List findLsEntity() {

    return entityService.find('select m from ' + Moneda.canonicalName + ' m where m.operacionId > 0')
  }

}
